﻿using System;
using System.Collections.Generic;
using System.Text;
using DBScript;
using eBlog.Entity;

namespace eBlog.Service
{
    public class ArchiveService
    {
          public static List<ArchiveInfo> GetArchive()
          {
              IDBBase dal = DBFactory.GetDbProvider();

              //var poststime= dal.From("Posts", "ID").Select("ID,CreateDate").GetList<Posts>();

              List<ArchiveInfo> archiveInfos=new List<ArchiveInfo>();
              
              //ArchiveInfo archiveInfo=new ArchiveInfo();

              //foreach (var posts in poststime)
              //{
              //   var month= posts.CreateDate.Month;
              //   var year = posts.CreateDate.Year;
              //   archiveInfos.Add(new ArchiveInfo());
              //}
              



              return archiveInfos;


          }
    }
}
